Encapsulates a function registered for testing. More...
Public Member Functions | |
TestFunction (nkMemory::StringView name, std::function< void()> function) | |
~TestFunction () | |
std::function< void()> | getFunction () const |
nkMemory::StringView | getName () const |
Encapsulates a function registered for testing.
nkDebug::TestFunction::TestFunction | ( | nkMemory::StringView | name, |
std::function< void()> | function | ||
) |
Constructor.
name | The function's name. |
function | The actual function encapsulated. |
nkDebug::TestFunction::~TestFunction | ( | ) |
Destructor.
std::function<void ()> nkDebug::TestFunction::getFunction | ( | ) | const |
nkMemory::StringView nkDebug::TestFunction::getName | ( | ) | const |